package com.knife.bbs.domain;

import java.util.Date;
import com.knife.dbo.IObject;
/**
 * BBS栏目信息-通过实现IObject接口支持EasyDBO零配置文件方式映射
 */
public class BBSDir implements IObject {
	
	//	EasyJWeb Tools自动代码生成
	  //属性部份 
	
    private String cid;
    private String sn;
    private String title;
    private String parentsn;
    private String dirpath;
    private String intro;
    private String tagimg;
    private String manager;
    private String submanager;
    private String vrtype;
    private String vrvalue;     
    private String inputuser;
    private Date inputtime; 
    private Integer sequence; 
    private Integer status;
    private int messagenum;
    private int replynum;
//  EasyDBO自动映射部份
	public  String getTableName()
    {
    	return "BBSDir";
    }
    public  String getKeyField()
    {
    	return "cid";	
    }
    public String getKeyGenerator()//主键产生器
    {
    	return "com.knife.dbo.RandomIdGenerator";
    }
//  getter及setter方法
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public String getDirpath() {
		return dirpath;
	}
	public void setDirpath(String dirPath) {
		this.dirpath = dirPath;
	}
	public Date getInputtime() {
		return inputtime;
	}
	public void setInputtime(Date inputTime) {
		this.inputtime = inputTime;
	}
	public String getInputuser() {
		return inputuser;
	}
	public void setInputuser(String inputUser) {
		this.inputuser = inputUser;
	}
	public String getIntro() {
		return intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	public String getManager() {
		return manager;
	}
	public void setManager(String manager) {
		this.manager = manager;
	}
	public String getParentsn() {
		return parentsn;
	}
	public void setParentsn(String parentSn) {
		this.parentsn = parentSn;
	}
	public Integer getSequence() {
		return sequence;
	}
	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getSubmanager() {
		return submanager;
	}
	public void setSubmanager(String subManager) {
		this.submanager = subManager;
	}
	public String getTagimg() {
		return tagimg;
	}
	public void setTagimg(String tagImg) {
		this.tagimg = tagImg;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getVrtype() {
		return vrtype;
	}
	public void setVrtype(String type) {
		vrtype = type;
	}
	public String getVrvalue() {
		return vrvalue;
	}
	public void setVrvalue(String value) {
		vrvalue = value;
	}
	public int getMessagenum() {
		return messagenum;
	}
	public void setMessagenum(int messageNum) {
		this.messagenum = messageNum;
	}
	public int getReplynum() {
		return replynum;
	}
	public void setReplynum(int replyNum) {
		this.replynum = replyNum;
	}
	
	public void setDir(com.knife.bbs.object.BBSDir dir){
		if (dir.getCid() != null) {
			if (dir.getCid().length() > 0) {
				this.cid = dir.getCid();
			}
		}
		this.sn=dir.getSn();
		this.title=dir.getTitle();
		this.parentsn=dir.getParentsn();
		this.dirpath=dir.getDirpath();
		this.intro=dir.getIntro();
		this.tagimg=dir.getTagimg();
		this.manager=dir.getManager();
		this.submanager=dir.getSubmanager();
		this.vrtype=dir.getVrtype();
		this.vrvalue=dir.getVrvalue();     
		this.inputuser=dir.getInputuser();
		this.inputtime=dir.getInputtime(); 
		this.sequence=dir.getSequence(); 
		this.status=dir.getStatus();
		this.messagenum=dir.getMessagenum();
		this.replynum=dir.getReplynum();
	}
}